package com.dehui.traders.utils;

import android.widget.ListView;

import com.dehui.traders.bean.F10Bean;
import com.dehui.traders.bean.FinancialBean;
import com.dehui.traders.bean.InformationBean;
import com.dehui.traders.bean.NewBean;
import com.dehui.traders.bean.OptionalStockBean;
import com.dehui.traders.bean.PlateBean;
import com.dehui.traders.bean.RankBean;
import com.dehui.traders.bean.ShareHolderBean;
import com.dehui.traders.bean.TheBroaderBean;
import com.dehui.traders.enums.InformationTab;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by hqq on 18.4.3.
 */

public class SimulatedDataManager {

    public static List<NewBean> getNewList(){
        List<NewBean> newsList = new ArrayList<>();
        newsList.add(new NewBean("工信部推进工业互联网发展 概念股走强","2018-1-23"));
        newsList.add(new NewBean("工信部推进工业互联网发展 概念股走强","2018-1-23"));
        newsList.add(new NewBean("工信部推进工业互联网发展 概念股走强","2018-1-23"));
        newsList.add(new NewBean("工信部推进工业互联网发展 概念股走强","2018-1-23"));
        return newsList;
    }

    public static List<NewBean> getAnnouncementList(){
        List<NewBean> announcementList = new ArrayList<>();
        announcementList.add(new NewBean("宝星软件:股票交易异常波动公告","207-2-12"));
        announcementList.add(new NewBean("宝星软件:股票交易异常波动公告","207-2-12"));
        announcementList.add(new NewBean("宝星软件:股票交易异常波动公告","207-2-12"));
        announcementList.add(new NewBean("宝星软件:股票交易异常波动公告","207-2-12"));
        announcementList.add(new NewBean("宝星软件:股票交易异常波动公告","207-2-12"));
        return announcementList;
    }

    public static F10Bean getF10Bean() {
        F10Bean mF10Bean = new F10Bean();
        mF10Bean.industry = "汽车行业";
        mF10Bean.companyName = "上海汽车集团有限公司";
        mF10Bean.district = "上海";
        mF10Bean.legalRepresentative = "橙弓";
        mF10Bean.mainBusiness = "以身份认证为主的信息安全产品的研发生产和销售服务";
        mF10Bean.companyProfile = "公司前身为北京飞天诚信科技有限公司。经20011年飞天有限股东大会审议通过，" +
                "原飞天有限全体股东作为发起人，飞天有限整体变更为股份有限公司。中瑞岳华会计师事务所对公司整体" +
                "更变为股份有限公司的注册资本实收进行审验。";
        mF10Bean.launchDate = "2014-06-26";
        mF10Bean.offerPrice = "33.13元";
        mF10Bean.offerNum = "2343万股";
        mF10Bean.issuePriceRatio = "16.57";
        mF10Bean.expectedFundraising = "6.18亿元";
        mF10Bean.onlineSignturesRate = "0.54%";
        mF10Bean.underNetworkMatchRate = "0.48%";

        mF10Bean.fundHolding = "28.34万元";
        mF10Bean.forFlowThroughShares = "0.97%";
        mF10Bean.incrementalCapital = "28.32万元";
        mF10Bean.raiseIncreaseDecrease = "--";
        mF10Bean.holdingNum = "39.23万股";
        mF10Bean.holdingFunds = "5家";
        mF10Bean.holdStocksIncreaseDecrease = "34.23万股";
        mF10Bean.fundIncreaseDecrease = "5家";

        List<F10Bean.DistributionPlan> distributionPlanList = new ArrayList<>();
        distributionPlanList.add(new F10Bean.DistributionPlan("2017中报","不分配不转增","--"));
        distributionPlanList.add(new F10Bean.DistributionPlan("2016年报","不分配不转增","--"));
        distributionPlanList.add(new F10Bean.DistributionPlan("2016中报","不分配不转增","--"));
        distributionPlanList.add(new F10Bean.DistributionPlan("2015年报","10派1.1元","2016-02-12"));
        distributionPlanList.add(new F10Bean.DistributionPlan("2017中报","不分配不转增","--"));
        distributionPlanList.add(new F10Bean.DistributionPlan("2017中报","不分配不转增","--"));
        mF10Bean.distributionPlanList = distributionPlanList;

        List<F10Bean.EventRemind> eventRemindList = new ArrayList<>();
        eventRemindList.add(new F10Bean.EventRemind("2018-03-23","报表披露：2017年年报将于2018年04月24日披露，2018年" +
                "一季报将于2018年04月25日披露"));
        eventRemindList.add(new F10Bean.EventRemind("2018-02-23","报表披露：增发方案-2018年度：发行2275.83万股，发行价格：" +
                "21.97元/股\n发行对象-购买资产发行对象为梁燕生,行对象-购买资产发行对象为梁燕生行对象-购买资产发行对象为梁燕生行对象-购买资产发行对象为梁燕生行对象-购买资产发行对象为梁燕生行对象-购买资产发行对象为梁燕生"));
        mF10Bean.eventRemindList = eventRemindList;

        List<F10Bean.Concept> conceptList = new ArrayList<>();
        conceptList.add(new F10Bean.Concept("智慧城市","(+0.52%)"));
        conceptList.add(new F10Bean.Concept("智能制造","+(0.52%)"));
        conceptList.add(new F10Bean.Concept("新能源汽车","+(0.52%)"));
        mF10Bean.conceptList = conceptList;

        return mF10Bean;
    }

    public static ShareHolderBean getShareHolderBean() {
        ShareHolderBean shareHolderBean = new ShareHolderBean();
        shareHolderBean.totalEquity = "1.32亿";
        shareHolderBean.allAStocks = "1.03亿";
        shareHolderBean.circulateAStocks = "1.32亿";
        shareHolderBean.effectiveCirculateAStocks = "4389.21万";
        shareHolderBean.curbSalesAStocks = "9438.12万";

        List<ShareHolderBean.CurbSales> curbSalesList = new ArrayList<>();
        curbSalesList.add(new ShareHolderBean.CurbSales("2020-1-20","234.20万股","2.32%"));
        curbSalesList.add(new ShareHolderBean.CurbSales("2020-1-20","234.20万股","2.32%"));
        curbSalesList.add(new ShareHolderBean.CurbSales("2020-1-20","234.20万股","2.32%"));
        curbSalesList.add(new ShareHolderBean.CurbSales("2020-1-20","234.20万股","2.32%"));
        shareHolderBean.curbSalesList = curbSalesList;

        shareHolderBean.holdNums = new String[]{"320万","324万"};
        shareHolderBean.flows = new String[]{"4.23%","12.3%"};
        shareHolderBean.institutionsNums = new String[]{"5","40"};
        shareHolderBean.fundNums = new String[]{"5","40"};

        List<ShareHolderBean.ShareHolderNumber> shareHolderNumberList = new ArrayList<>();
        shareHolderNumberList.add(new ShareHolderBean.ShareHolderNumber("2017-10-21","23123","3823"));
        shareHolderNumberList.add(new ShareHolderBean.ShareHolderNumber("2017-10-21","23123","3823"));
        shareHolderNumberList.add(new ShareHolderBean.ShareHolderNumber("2017-10-21","23123","3823"));
        shareHolderNumberList.add(new ShareHolderBean.ShareHolderNumber("2017-10-21","23123","3823"));
        shareHolderNumberList.add(new ShareHolderBean.ShareHolderNumber("2017-10-21","23123","3823"));
        shareHolderBean.shareHolderNumberList = shareHolderNumberList;

        shareHolderBean.circulateShareholderdates = new String[]{"2017三季度","2017中报","2017一季度","2016年报"};

        List<ShareHolderBean.CirculateShareholderItem> circulateShareholderItemList = new ArrayList<>();
        circulateShareholderItemList.add(new ShareHolderBean.CirculateShareholderItem("复兴产业控股有限公司","3.22%","103.33万","不变"));
        circulateShareholderItemList.add(new ShareHolderBean.CirculateShareholderItem("复兴产业控股有限公司","4.22%","103.33万","不变"));
        circulateShareholderItemList.add(new ShareHolderBean.CirculateShareholderItem("中国农业银行股份有限公司","1.32%","103.33万","不变"));
        circulateShareholderItemList.add(new ShareHolderBean.CirculateShareholderItem("上海德治和投资有限公司","3.41%","103.33万","不变"));
        circulateShareholderItemList.add(new ShareHolderBean.CirculateShareholderItem("中国建设银行股份有限公司-华夏盛世精选混合证券投资基金","3.22%","103.33万","新进"));
        circulateShareholderItemList.add(new ShareHolderBean.CirculateShareholderItem("复兴产业控股有限公司","3.22%","86.33万","不变"));
        circulateShareholderItemList.add(new ShareHolderBean.CirculateShareholderItem("东花园","3.22%","113.33万","不变"));
        circulateShareholderItemList.add(new ShareHolderBean.CirculateShareholderItem("复兴产业控股有限公司","3.22%","43.33万","不变"));
        circulateShareholderItemList.add(new ShareHolderBean.CirculateShareholderItem("复兴产业控股有限公司","3.22%","14.14万","不变"));
        circulateShareholderItemList.add(new ShareHolderBean.CirculateShareholderItem("复兴产业控股有限公司","3.22%","47.09万","不变"));
        shareHolderBean.circulateShareholderItemList = circulateShareholderItemList;

        shareHolderBean.actualController = "李毅(持有比例:93.3%)";
        shareHolderBean.holdingShareholder = "辽宁德尔实业股份有限公司(持有比例:35.32%)";

        return shareHolderBean;
    }

    public static FinancialBean getFinancialBean() {
        FinancialBean financialBean = new FinancialBean();
        financialBean.basePerStocksEarnings = "0.01元";
        financialBean.perStocksNetAsset = "1.56元";
        financialBean.perStocksAccumulationFund = "--";
        financialBean.perStocksUndistributedProfits = "--";
        financialBean.perStocksCashFlow = "--";
        financialBean.netAssetsIncomeRate = "0.74%";
        financialBean.totalEquity = "3.02亿股";
        financialBean.priceEarningRatioTTM = "537.32";
        financialBean.priceEarningRatio = "400.22";
        financialBean.priceValueRatio = "4.02";

        return financialBean;
    }

    public static List<InformationBean.News> getLastNewsList() {
        InformationBean informationBean = new InformationBean();
        List<InformationBean.News> newsList = new ArrayList<>();
        newsList.add(new InformationBean.News("告别GPS 国产北斗导航地图5月上线",
                "据重庆晚报报道，北斗地图APP导航预计于2018年4月1日正式上线，届时广大用户就可以","2019-2-3"));
         newsList.add(new InformationBean.News("一周要闻回顾及下周展望20191201",
                "据重庆晚报报道，北斗地图APP导航预计于2018年4月1日正式上线，届时广大用户就可以","2019-2-3"));
         newsList.add(new InformationBean.News("普兰特：活在对1000亿美元中国商品加征关税",
                "据重庆晚报报道，北斗地图APP导航预计于2018年4月1日正式上线，届时广大用户就可以","2019-2-3"));
         newsList.add(new InformationBean.News("告别GPS 国产北斗导航地图5月上线",
                "据重庆晚报报道，北斗地图APP导航预计于2018年4月1日正式上线，届时广大用户就可以","2019-2-3"));
        newsList.add(new InformationBean.News("告别GPS 国产北斗导航地图5月上线",
                "据重庆晚报报道，北斗地图APP导航预计于2018年4月1日正式上线，届时广大用户就可以","2019-2-3"));
        informationBean.newsList = newsList;
        return newsList;
    }

    public static List<TheBroaderBean> getBroaderList() {
        ArrayList<TheBroaderBean> list = new ArrayList<>();
        list.add(new TheBroaderBean("深证成指","000001",new String[]{"2121.29","0.23%","7.18","0.45%","1.396亿","1772亿","0.87","+1.14%","+0.10%","-0.70%","2.48%","0","-","0.00亿","0.00万亿","0.00%","0.00"}));
        list.add(new TheBroaderBean("深证成指","000001",new String[]{"2121.29","0.23%","7.18","0.45%","1.396亿","1772亿","0.87","+1.14%","+0.10%","-0.70%","2.48%","0","-","0.00亿","0.00万亿","0.00%","0.00"}));
        list.add(new TheBroaderBean("深证成指","000001",new String[]{"2121.29","0.23%","7.18","0.45%","1.396亿","1772亿","0.87","+1.14%","+0.10%","-0.70%","2.48%","0","-","0.00亿","0.00万亿","0.00%","0.00"}));
        list.add(new TheBroaderBean("深证成指","000001",new String[]{"2121.29","0.23%","7.18","0.45%","1.396亿","1772亿","0.87","+1.14%","+0.10%","-0.70%","2.48%","0","-","0.00亿","0.00万亿","0.00%","0.00"}));
        return list;
    }

    public static List<OptionalStockBean> getOptionalStockList() {
        ArrayList<OptionalStockBean> list = new ArrayList<>();
        list.add(new OptionalStockBean("深证成指","000001",new String[]{"2121.29","0.23%","7.18","0.45%","1.396亿","1772亿","0.87","+1.14%","+0.10%","-0.70%","2.48%","0","-","0.00亿","0.00万亿","0.00%","0.00"}));
        return list;
    }

    public static List<OptionalStockBean> addOneData(List<OptionalStockBean> list) {
        list.add(new OptionalStockBean("深证成指","000001",new String[]{"2121.29","0.23%","7.18","0.45%","1.396亿","1772亿","0.87","+1.14%","+0.10%","-0.70%","2.48%","0","-","0.00亿","0.00万亿","0.00%","0.00"}));
        return list;
    }

    public static ArrayList<RankBean> getRankList() {
        ArrayList<RankBean> list = new ArrayList<>();
        RankBean rankBean = new RankBean();
        rankBean.title = "领涨个股";
        rankBean.rankDetailList = new ArrayList<>();
        rankBean.rankDetailList.add(new RankBean.RankDetail("宏创智慧\n002930","21.11","10.22%","2.40"));
        rankBean.rankDetailList.add(new RankBean.RankDetail("宏创智慧\n002930","21.11","10.22%","2.40"));
        rankBean.rankDetailList.add(new RankBean.RankDetail("宏创智慧\n002930","21.11","10.22%","2.40"));
        rankBean.rankDetailList.add(new RankBean.RankDetail("宏创智慧\n002930","21.11","10.22%","2.40"));
        list.add(rankBean);
        RankBean rankBean1 = new RankBean();
        rankBean1.title = "中小板";
        rankBean1.rankDetailList = new ArrayList<>();
        rankBean1.rankDetailList.add(new RankBean.RankDetail("峰龙股份\n002931","33.11","3.22%","2.40"));
        rankBean1.rankDetailList.add(new RankBean.RankDetail("峰龙股份\n002931","33.11","3.22%","2.40"));
        list.add(rankBean1);
        RankBean rankBean2 = new RankBean();
        rankBean2.title = "创业板";
        rankBean2.rankDetailList = new ArrayList<>();
        rankBean2.rankDetailList.add(new RankBean.RankDetail("合众思壮\n002383","21.11","10.22%","2.40"));
        rankBean2.rankDetailList.add(new RankBean.RankDetail("合众思壮\n002383","21.11","10.22%","2.40"));
        rankBean2.rankDetailList.add(new RankBean.RankDetail("合众思壮\n002383","21.11","10.22%","2.40"));
        list.add(rankBean2);
        return list;
    }


    public static ArrayList<PlateBean> getPlateBean() {
        ArrayList<PlateBean> list = new ArrayList<>();
        PlateBean plateBean = new PlateBean();
        plateBean.title = "领涨板块";
        plateBean.plateDetailList = new ArrayList<>();
        plateBean.plateDetailList.add(new PlateBean.PlateDetail("北斗导航\n001211","21.11","10.22%","2.40"));
        plateBean.plateDetailList.add(new PlateBean.PlateDetail("北斗导航\n001211","21.11","10.22%","2.40"));
        plateBean.plateDetailList.add(new PlateBean.PlateDetail("北斗导航\n001211","21.11","10.22%","2.40"));
        plateBean.plateDetailList.add(new PlateBean.PlateDetail("北斗导航\n001211","21.11","10.22%","2.40"));
        list.add(plateBean);
        return list;
    }

    public static List<String> getRankNames() {
        List<String> list = new ArrayList<>();
        list.add("香港主板");
        list.add("新三板");
        list.add("AH股");
        list.add("上证A股");
        list.add("深证A股");
        list.add("上证B股");
        list.add("深证B股");
        list.add("上证基金");
        list.add("深证基金");
        list.add("上证债券");
        list.add("深证债券");
        list.add("权证");
        return list;
    }



}
